package org.onionframework.persistence.query.projection;


public class DateStringProjection extends Projection {

	private String pattern;
	private boolean grouped;
	
	public DateStringProjection(String property, boolean grouped, String pattern) {
		super(ProjectionType.dateString, property);
		this.pattern = pattern;
		this.grouped = grouped;
	}
	
	public DateStringProjection(String property, boolean grouped, String pattern, String alias) {
		this(property,grouped,pattern);
		this.alias = alias;
	}


	/**
	 * @return the pattern
	 */
	public String getPattern() {
		return pattern;
	}

	/**
	 * @return the grouped
	 */
	public boolean isGrouped() {
		return grouped;
	}
	
	
}
